home *** CD-ROM | disk | FTP | other *** search
/ Photo Journalism - The Best of 1992 / Associated Press Present, The - Photo Journalism - The Best of 1992 (Europe).zip / Associated Press Present, The - Photo Journalism - The Best of 1992 (Europe) (Track 1).bin / dos_app / runpcd.bat < prev    next >
DOS Batch File  |  1993-08-04  |  3KB  |  94 lines

  1. @echo off
  2. if %pcd1%a == a set pcd1=1
  3. if %pcd2%a == a set pcd2=1
  4.  
  5. :dostart
  6. echo "PHOTO-CD VIEWER: PCDVIEW SELECTION">c:\pcdview.dat
  7. if     %pcd1% == 1 echo [X] Use primary   colours (for 8 bit display)>>c:\pcdview.dat
  8. if NOT %pcd1% == 1 echo [ ] Use primary   colours (for 8 bit display)>>c:\pcdview.dat
  9. if     %pcd1% == 2 echo [X] Use greyscale colours (for 8 bit display)>>c:\pcdview.dat
  10. if NOT %pcd1% == 2 echo [ ] Use greyscale colours (for 8 bit display)>>c:\pcdview.dat
  11. if     %pcd1% == 3 echo [X] Use dithered  colours (for 8 bit display)>>c:\pcdview.dat
  12. if NOT %pcd1% == 3 echo [ ] Use dithered  colours (for 8 bit display)>>c:\pcdview.dat
  13. if     %pcd2% == 1 echo [X] Do not scale image>>c:\pcdview.dat
  14. if NOT %pcd2% == 1 echo [ ] Do not scale image>>c:\pcdview.dat
  15. if     %pcd2% == 2 echo [X] Maximise picture size>>c:\pcdview.dat
  16. if NOT %pcd2% == 2 echo [ ] Maximise picture size>>c:\pcdview.dat
  17. if     %pcd2% == 3 echo [X] Stretch picture to fill screen>>c:\pcdview.dat
  18. if NOT %pcd2% == 3 echo [ ] Stretch picture to fill screen>>c:\pcdview.dat
  19. echo Run PCDVIEW in 320 x 200 x  8 bit (F1 to exit)>>c:\pcdview.dat
  20. echo Run PCDVIEW in 640 x 480 x  8 bit (F1 to exit)>>c:\pcdview.dat
  21. echo Run PCDVIEW in 800 x 600 x  8 bit (F1 to exit)>>c:\pcdview.dat
  22. echo Run PCDVIEW in 640 x 480 x 15 bit (F1 to exit)>>c:\pcdview.dat
  23. echo Run PCDVIEW in 800 x 600 x 15 bit (F1 to exit)>>c:\pcdview.dat
  24. echo Exit Back To DOS>>c:\pcdview.dat
  25.  
  26. :quickstart
  27. cls
  28. select c:\pcdview.dat
  29. if errorlevel 12 goto ends
  30. if errorlevel 11 goto option11
  31. if errorlevel 10 goto option10
  32. if errorlevel  9 goto option9
  33. if errorlevel  8 goto option8
  34. if errorlevel  7 goto option7
  35. if errorlevel  6 goto option6
  36. if errorlevel  5 goto option5
  37. if errorlevel  4 goto option4
  38. if errorlevel  3 goto option3
  39. if errorlevel  2 goto option2
  40. if errorlevel  1 goto option1
  41. goto ends
  42. goto dostart
  43.  
  44. :option1
  45. set pcd1=1
  46. goto dostart
  47.  
  48. :option2
  49. set pcd1=2
  50. goto dostart
  51.  
  52. :option3
  53. set pcd1=3
  54. goto dostart
  55.  
  56. :option4
  57. set pcd2=1
  58. goto dostart
  59.  
  60. :option5
  61. set pcd2=2
  62. goto dostart
  63.  
  64. :option6
  65. set pcd2=3
  66. goto dostart
  67.  
  68. :option7
  69. pcdview 320 200 8 %pcd1% %pcd2%
  70. goto quickstart
  71.  
  72. :option8
  73. pcdview 640 480 8 %pcd1% %pcd2%
  74. goto quickstart
  75.  
  76. :option9
  77. pcdview 800 600 8 %pcd1% %pcd2%
  78. goto quickstart
  79.  
  80. :option10
  81. pcdview 640 480 15 %pcd1% %pcd2%
  82. goto quickstart
  83.  
  84. :option11
  85. pcdview 800 600 15 %pcd1% %pcd2%
  86. goto quickstart
  87.  
  88. :ends
  89. : tidy up all batch file rubbish
  90. : could leave pcd1/pcd2 so batch file will remember settings
  91. :::set pcd1=
  92. :::set pcd2=
  93. del c:\pcdview.dat
  94.